<?php
class OrderDOFilterPost{
	public $order;
	
	public function OrderDOFilterPost(){
		$order = array();
		// order
		foreach($_POST as $k=>$v){
			if( strpos($k, 'jml_kotak-') !== false ){
				$index = substr($k, strpos($k, '-')+1);
				
				$order['jml_kotak'][$index-1]    = $v;
				$order['jml_kecambah'][$index-1] = $_POST['jml_kecambah-'.$index];
				$order['keterangan'][$index-1]   = $_POST['keterangan-'.$index];
			}
		}		
		
	
		$this->order = $order;
	}
}
?>